testsuite: Improve diff_with_file() function
authorBenjamin Otte <otte@redhat.com>
Mon, 27 Jan 2020 01:15:06 +0000 (02:15 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 28 Jan 2020 01:17:03 +0000 (02:17 +0100)
commit93cf76b068a752dd90276f461b9f43f8542229a7
tree1927c975e5e79a34ef6ae80e37ee98fd481556fa
parent170130f1d9c15e4274a24b9327fe01d36ad84290
testsuite: Improve diff_with_file() function

Properly handle diff(1) failing.

In this particular case, the test passed a NULL input file to the diff
(that was fixed, too) and then diff only found one input file and
aborted.

But without this fix, we'd also not catch other abortion reasons for
diff() - as long as it exited in any way, we were happy.
testsuite/css/parser/test-css-parser.c
testsuite/css/style/test-css-style.c
testsuite/gsk/node-parser.c